<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="employeeList.title"/></title>
<content tag="heading"><fmt:message key="employeeList.heading"/></content>
<meta name="menu" content="EmployeeMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editEmployee.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<html:rewrite forward="mainMenu"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="employeeList" cellspacing="0" cellpadding="0"
    id="employeeList" pagesize="25" class="table employeeList"
    export="true" requestURI="">

    <display:column property="id" sortable="true" headerClass="sortable"
        url="/editEmployee.html" paramId="id" paramProperty="id"
        titleKey="employeeForm.id"/>
    <display:column property="empNo" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empNo"/>
    <display:column property="empName" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empName"/>
    <display:column property="companyId" sortable="true" headerClass="sortable"
        titleKey="employeeForm.companyId"/>         
    <!-- display:column property="empEngName" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empEngName"/-->
    <display:column property="sex" sortable="true" headerClass="sortable"
         titleKey="employeeForm.sex"/>
    <display:column property="empId" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empId"/>
    <display:column property="empDept" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empDept"/>
    <!-- display:column property="empPosition" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empPosition"/-->
    <!-- display:column property="positionNo" sortable="true" headerClass="sortable"
         titleKey="employeeForm.positionNo"/-->
    <display:column property="empTitle" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empTitle"/>
    <!-- display:column property="mobile" sortable="true" headerClass="sortable"
         titleKey="employeeForm.mobile"/-->
    <display:column property="empHireDate" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empHireDate"/>
    <!-- display:column property="empEducation" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empEducation"/-->
    <!-- display:column property="empSchool" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empSchool"/-->
    <!-- display:column property="empEduDepartment" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empEduDepartment"/-->
    <display:column property="empWorkType" sortable="true" headerClass="sortable"
         titleKey="employeeForm.empWorkType"/>
    <!-- display:column property="leaveDate" sortable="true" headerClass="sortable"
         titleKey="employeeForm.leaveDate"/-->
    <!-- display:column property="telephone" sortable="true" headerClass="sortable"
         titleKey="employeeForm.telephone"/-->
    <!-- display:column property="fax" sortable="true" headerClass="sortable"
         titleKey="employeeForm.fax"/-->
    <!-- display:column property="address" sortable="true" headerClass="sortable"
         titleKey="employeeForm.address"/-->
    <!-- display:column property="address2" sortable="true" headerClass="sortable"
         titleKey="employeeForm.address2"/-->
    <display:setProperty name="paging.banner.item_name"><fmt:message key="employeeList.title"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="employeeList.title"/></display:setProperty>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("employeeList");
</script>
